﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyStep.Attributes;using EasyStep.TestExecution.Data;using EasyStep.TestExecution.Interfaces;

using ArtOfTest.WebAii.Core;


namespace EasyStep.TestActions.Actions.Click
{
    [TestAction(typeof(Click), RequireLocator = true, Name = "ByName", RequireData = false)]    
    public class ClickByName : ITestAction<Manager>
    {

        public void Execute(Manager browser, TestStepResult data, IExecuteDataContext context)
        {
            browser.ActiveBrowser.Actions.Click(browser.ActiveBrowser.Find.ByName(data.Locator));
            throw new NotImplementedException();
        }
    }
}
